package com.tianhui.consignortwofei.role;

import android.os.Bundle;

import com.fgs.common.utils.ToastUtil;
import com.tianhui.consignortwofei.constant.KeyValue;
import com.tianhui.consignortwofei.constant.OrderType;
import com.tianhui.consignortwofei.mvp.ui.activity.DiaoDuOrderListActivity;
import com.tianhui.consignortwofei.utils.ApplicationUtil;

/**
 * @author fgs
 * @date 2021/6/3
 * @description 客服
 **/
public class OfficerRole extends BaseRole {
    @Override
    public void deliverGoodsOperate() {
        ToastUtil.showShortToast("暂无此操作权限");
    }

    @Override
    public void sourceOperate() {
        ToastUtil.showShortToast("暂无此操作权限");
    }

    @Override
    public void dispatchOperate() {
        Bundle bundle = new Bundle();
        bundle.putInt(KeyValue.KEY_TYPE, OrderType.TYPE_DISPATCH);
        ApplicationUtil.openActivity(DiaoDuOrderListActivity.class, bundle);
    }

    @Override
    public void freightOperate() {
        ToastUtil.showShortToast("暂无此操作权限");
    }

    @Override
    public void paymentOperate() {
        ToastUtil.showShortToast("暂无此操作权限");
    }

    @Override
    public boolean isShowOrderTypeTabLayout() {
        return false;
    }

    @Override
    public boolean isShowCarrierManageView() {
        return true;
    }


    @Override
    public boolean isShowCustomerName() {
        return true;
    }

    @Override
    public boolean isCanTerminateDispatchOrder() {
        return true;
    }

    @Override
    public boolean isDispatchOrderShowVehicleNumber() {
        return true;
    }

    @Override
    public boolean isShowEditImage() {
        return true;
    }
}
